package cn.wolfcode.education.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Collections {

    //审核状态
    private static int STATUS_NO = 0; //未审核
    private static int STATUS_YES = 1; //已审核

    //费用状态常量
    public static final int FEE_NO = 0; //费用未缴清
    public static final int FEE_YES = 1; //费用已缴清

    //编号
    private Long id;
    //正式员工id
    private Long regularStuId;
    //姓名
    private String name;
    //班级
    private Classgrade classgrade;
    //收款时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date collectionMoneyTime;
    //总费用
    private BigDecimal totalFee;
    //未缴费用
    private BigDecimal unPaidFee;
    //已缴费用
    private BigDecimal paidFee;
    //营销人员
    private Employee inputEmployee;
    //描述
    private String info;
    //支付类型
    private SystemDictionaryItem paymentType;
    //付款方式
    private SystemDictionaryItem payment;
    //收款人员
    private Employee paymentEmployee;
    //审核状态
    private int status;
    //审核人
    private Employee statusEmployee;
    //缴费状态
    private int feeStatus = FEE_NO;

}